import GCJ_CLASS_TYPE = require('./../../common/GCJ_CLASS_TYPE');
import Serializer = require('./../base/Serializer');
import SJGReplaceItemBase = require('./SJGReplaceItemBase');
import SJGReplaceItemGroup = require('./SJGReplaceItemGroup');
import CommonModel = require('./../../common/model/CommonModel');


var CONFIG=require('../../../../common/config');
export  = SJGReplaceItemTableCell;

/**
 * 表格格子
 * @author 
 *
 */
class SJGReplaceItemTableCell extends SJGReplaceItemGroup{
    
    
    
    public constructor(g?) {
        super(g);

        this.ct = GCJ_CLASS_TYPE.CLASS_TYPE_SJGReplaceItemTableCell;
        this.type=SJGReplaceItemBase.TYPE_TABLE_CELL;
    }
    
    // 从json对象(注意不是json字符串)中解析
    public fromJson(jsonObj,versionId) {
        super.fromJson(jsonObj,versionId);
        
        
    }
    
    // 转成json字符串
    public toJson(): string {
        // 去掉父json字符串的头尾
        var superJson = super.toJson();
        superJson = superJson.substr(1,superJson.length - 2);

        var ret = '{';
        ret += superJson;
        
        
        
        ret += '}';
        return ret;
    }
    // 获取对象名称
    public getObjetName(): string {
        return "表格格子";
    }
}//SJG_MARK_END-------------------------
